package com.neusoft.yuejian_01.service;

import com.neusoft.yuejian_01.javabean.ActivityBean;
import com.neusoft.yuejian_01.javabean.ActivityRegBean;
import com.neusoft.yuejian_01.javabean.IsActivityReg;
import com.neusoft.yuejian_01.javabean.NoRegBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/9/28.
 */

public interface ActivityService {
    // http://10.0.2.2/neu_yuejian14/API/Activity/getActivitylist
    @GET("Activity/getActivitylist")
    Call<List<ActivityBean>> getActivitylist();
    //http://localhost/neu14_yuejian/API/Activity/getActivityDetail/a_id/1
    @GET("Activity/getActivityDetail")
    Call<ActivityBean> getActivityDetail(@Query("a_id") String a_id);
    //http://localhost/neu14_yuejian/API/Activity/addActivityRegistration/u_id/1/a_id/4
    @GET("Activity/addActivityRegistration")
    Call<ActivityRegBean> addActivityRegistration(@Query("u_id") String u_id,
                                                  @Query("a_id") String a_id);
    //http://localhost/neu14_yuejian/API/Activity/getIsReg/u_id/4/a_id/1
    @GET("Activity/getIsReg")
    Call<IsActivityReg> getIsReg(@Query("u_id") String u_id,
                                 @Query("a_id") String a_id);
    //http://localhost/neu14_yuejian/API/Activity/getIsNotReg/u_id/4/a_id/2
    @GET("Activity/getIsNotReg")
    Call<NoRegBean> getIsNotReg(@Query("u_id") String u_id,
                                @Query("a_id") String a_id);
    //http://localhost/neu14_yuejian/API/Activity/getActivityRegistration/u_id/1/a_id/1
    @GET("Activity/getActivityRegistration")
    Call<ActivityRegBean> getActivityRegistration(@Query("u_id") String u_id,
                                                  @Query("a_id") String a_id);


}
